package com.doform.android.xianggucheng.utils;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by 002 on 2017/4/11.
 */

public class TsUtils {

    private static Toast toast;

    public static void showToast(Context context, String text){

        if (toast == null){
            toast = Toast.makeText(context,text,Toast.LENGTH_SHORT);
        }
        toast.setText(text);
        toast.show();
    }

    public static void showToast(String text){
        showToast(AppUtils.getContext(),text);
    }

}
